Logic Programming with Sets by Membership-constraints 1.1 Sets as New Data Structures 1.3 Overview of the Rest

نویسنده

  • Frieder Stolzenburg
چکیده

1 Motivation Implementations of logic programming languages have terms as their main data type. But often it may be useful and more natural to represent objects by sets instead of simple terms. General agreement exists about the usefulness of sets as very high-level representations of complex data structures. In particular, sets can be used conveniently in rapid software prototyp-ing. Therefore, it is worthwhile to introduce sets into logic programming. Sets shall be used on argument positions in (logic) programs. If we query the system e.g. fx; yg = fa; bg the system will answer with two variable bindings, namely fx a; y bg and fx b; y ag which represent the solutions of the corresponding set uniication problem. It is also useful to introduce more operators in the programming language, namely 2 and = 2. Furthermore set union and intersection \ may be desirable. There are constraint canonization algorithms like the ones stated in 2, 9]. Both need an algorithm for set uni-cation but they do not develop algorithms that are reasonable eecient in the average case. In this paper, we will concentrate on the implementation of an algorithm for set uniication which is needed in any logic programming language embedding ((nite) sets. Before we address this problem we have to give a deeni-tion of set uniication. A substitution is called a uni-er of two sets A = fx 1 ; : : : ; x m g and B = fy 1 ; : : : ; y n g ii for every x in A there exists some y in B (and vice versa too) such that xx = y 5] or (stated diierently) AA B and B AA. In the sequel, we will also consider sets with tails s written as fx 1 ; : : : ; x k jtg which has to be understood as the union fx 1 ; : : : ; x k g t; here t is a variable for a set, called the tail of s. In the following, we will present an algorithm that behaves eeciently in the average case. Firstly, the case where the set tails are empty can be treated by so-called membership-constraints which can be seen as a tricky variant of the predicate member/2 of Prolog using non-uniiability constraints 12]. Constraint techniques such as delayed execution and the rst-fail principle lead to even more improvements. Secondly, …

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Membership-Constraints and Complexity in Logic Programming with Sets

General agreement exists about the usefulness of sets as very highlevel representations of complex data structures. Therefore it is worthwhile to introduce sets into constraint logic programming or set constraints into programming languages in general. We start with a brief overview on different notions of sets. This seems to be necessary since there are almost as many different notions in the ...

متن کامل

Nurse rostering using fuzzy logic: A case study

In this paper, we used the fuzzy set theory for modeling flexible constraints and uncertain data in nurse scheduling problems and proposed a fuzzy linear model for nurse rostering problems. The developed model can produce rosters that satisfy hospital objectives, ward requirements and staff preferences by satisfying their requests as much as possible. Fuzzy sets are used for modeling demands of...

متن کامل

An Approach for Accurate Edging using Dynamic Membership Functions

In this paper, by means of fuzzy approaches, an accurate method is introduced for edging of color photographs. The difference between our method with other similar methods is the use of a morphological operation to think or thick the obtained edges. In this proposed method, a 3×3 window is dragged on the photo. For each block, 12 point sets will be defined, each including two non-overlapping po...

متن کامل

A Data Envelopment Analysis Model with Triangular Intuitionistic Fuzzy Numbers

DEA (Data Envelopment Analysis) is a technique for evaluating the relative effectiveness of decision-making units (DMU) with multiple inputs and outputs data based on non-parametric modeling using mathematical programming (including linear programming, multi-parameter programming, stochastic programming, etc.). The classical DEA methods are developed to handle the information in the form of cri...

متن کامل

Support vector regression with random output variable and probabilistic constraints

Support Vector Regression (SVR) solves regression problems based on the concept of Support Vector Machine (SVM). In this paper, a new model of SVR with probabilistic constraints is proposed that any of output data and bias are considered the random variables with uniform probability functions. Using the new proposed method, the optimal hyperplane regression can be obtained by solving a quadrati...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1994